﻿namespace Core.Helper
{
    public class Version
    {
        public static int ToInt32(string input)
        {
            string[] items = input.ToArray(".");
            for (int i = 0; i < items.Length; i++)
            {
                items[i] = items[i].PadLeft(1, '0');
            }

            return int.Parse(items.Contact());
        }
    }
}